@import '../assets/import.less';

.co-input {
  display: flex;
  align-items: center;
  height: 100px;
  position: relative;
  padding: 0 30px;
  font-size: 36px;
  color: @textColor;
  &::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px; /*no*/
    transition-duration: 300ms;
    background-color: @borderColor;
  }
}

.co-input--focus {
  &::after {
    height: 2px; /*no*/
    background-color: @primaryColor;
  }
}

.co-input--disabled {
  .co-input__element {
    color: @disabledColor;
  }
  &::after {
    background-color: transparent;
    border-bottom: 1px dashed @borderColor; /*no*/
  }
}

.co-input__element {
  height: 50px;
  width: 100%;
  line-height: 50px;
  padding: 0;
  appearance: none;
  outline: none;
  background-color: transparent;
  border: none;
  flex: 1;
  font-size: inherit;
  color: @textColor;
  &::-webkit-input-placeholder {
    color: @disabledColor;
  }
}

.co-input__text {
  color: @secondaryTextColor;
}

.co-input__prepend,
.co-input__append {
  color: @hintColor;
  display: flex;
  height: 100%;
  align-items: center;
}

.co-input__prepend,
.co-input__text--prefix {
  margin-right: 15px;
}
.co-input__append,
.co-input__text--suffix {
  margin-left: 15px;
}
